package com.study.spmongodb.book.wwj.char09;

/**
 * @author MI
 * @version 1.0
 * @date 2020/11/26 11:08
 */
public class ClassInit {
    static class Parent {
        static int value = 10;

        static {
            value = 20;
        }
    }

    static class Child extends Parent {
        static int i = value;
    }

    public static void main(String[] args) {
        System.out.println(Child.i);
    }
}
